package ualrcdg.shared.requests;

/**
 * Simple implementation of the "Fetch Game Request" object. See CDG XML Specifications: Server Requests: Fetch Game.
 */
public class FetchGameRequest extends CDGRequest
{
	public static final String requestTag = "fetchGame";
	
	public static final String dtdName = "fileOperations.dtd";
	
	public final String gameId;
	
	/**
	 * Primary constructor
	 *
	 * @param requestId the requestId of the FetchGameRequest object to be created
	 * @param gameId the gameId of the FetchGameRequest object to be created
	 */
	public FetchGameRequest( String requestId, String gameId )
	{
		super( requestId );
		
		this.gameId = gameId;
	}

	/*
	 * @see ualrcdg.shared.requests.CDGRequest#toString()
	 */
	@Override
	public String toString( )
	{
		return "FetchGameRequest [<" + super.toString( ) + "> gameId=" + gameId + "]";
	}
}
